package com.lz.repository.lg;

import com.lz.entity.Bank;
import com.lz.entity.MortgageSheet;
import org.hibernate.Session;

import java.util.List;

public interface MortgageSheetDaolg {
	//保存银行信息
	Integer saveBank(Session session,Bank bank);
	//保存按揭单信息
	Integer saveMortgageSheet(Session session,MortgageSheet mortgageSheet);
	
	//按条件查询按揭单
	List<MortgageSheet> selectMortgageList(Session session,String hql,Integer pageNo,Integer pageSize);
	
	//查询总条数
	Integer rows(Session session,String hql);
	
	//根据主键查询到按揭单信息
	MortgageSheet selectByPK(Session session,Integer MortgageSheetNo);
}
